<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>随机点名</title>
	</head>

	<body>
		<h2>~点名系统~</h2>
		<input type="button" value="开始" onclick="ok()" />
        <p id=number></p>
		<script>
			function ok() {
				var arr=new Array('1柯旭海','2宋自江','3相淑雅','4送汤唯');
				var n = Math.random()* 4;
				var num = parseInt(n);
				number.innerHTML=num;
			}
		</script>
	</body>

</html>